package com.mask.roll.edu.service;

import com.mask.roll.edu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.roll.edu.entity.VO.chapter.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author hx
 * @since 2021-10-23
 */
public interface ChapterService extends IService<Chapter> {

    /**
     * 获取课程大纲列表
     * @param courseId
     * @return
     */
    List<ChapterVO> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章节
     * @param chapterId
     */
    void deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
